Prev | Next

Flagpoles - Placing A Flag In A 3D Scene

<< | >>

Attaching Your Flag To A Flagpole

Overview

So far, the flags you've created have remained in the center of the screen. In this section, you'll attach a flag to a layer that looks like a flagpole. Flagpoles can be used to position your flag in a scene as well as move your flag around the scene.

The next few sections will use a lot of what you've learned so far.

Setting Up The Scene

Let's say you have a picture of a house and you'd like to decorate it with a flag to celebrate a holiday. In this example, you'll open a scene that has a 3D flagpole layer attached to a picture of a house. You'll attach a flag to the flagpole and make the flag hang from the pole.

  1. Open the "House.aep" project.

    Your Comp window should look like this.



    This scene has a picture of a house as a background. There is a 3D flagpole in the pole holder next to the window, as the red arrow shows.

    Let's add a flag to this scene.
  2. As you may remember, we always add the 3D Flag effect to a layer that is the same size as the Comp, so let's create a new Solid (Layer> New> Solid) for the flag effect.



    Name the Solid "Holiday Flag." Make sure the Solid is the same size as the Comp by clicking the "Make Comp Size" button. Make the Solid white.
  3. Click the OK button to create the Solid and add it to the project. Your scene will now be covered by the new Solid.
  4. Add the 3D Flag effect to the new Solid by selecting Effect> Zaxwerks> 3D Flag.



    The Solid will turn into a flag. There is an image of an American flag in our project already. Let's make the flag use that picture for its coloring and its size.
  5. In the Effect Controls window, find the Color From Layer parameter and select "USA.jpg." Your flag will now look like an American flag.



Attaching The Flag To The Pole

We're now ready to start integrating the flag into the scene.

  1. In the Effect Controls window, open the Attach To Layer twirly.



  2. Find the Attach To Layer menu and select "Flagpole.tga." This will put the flag in the same place as the flagpole. It is even rotated the same way as the flagpole.



    But it doesn't quite look right, does it? The edge of the flag isn't attached to the pole.

When a flag is attached to a flagpole, the center of the flag is placed at the center of the flagpole. In the next section, Handling Alignment Issues With Offsets, you'll learn how to use offsets to adjust the position of the flag on the flagpole.

You may wish to save this scene since we'll be using it in the next section.